/*

*** This do file creates the replication results for 

Fostering environment-efficiency through transnational linkages? Trajectories of CO2 and SO2, 1980-2000 (with Richard Perkins), Environment and Planning A, 40 (12), 2008, pp. 2970-2989

Eric Neumayer (LSE)																			

Please report any errors to e.neumayer@lse.ac.uk

*/


use "Article for EPA (efficiency).dta", clear



* Table 2
xi: xtabond lneiapppco2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp   i.year , robust pre(llneiapppco2machmanimpwt, endog)
outreg using c:\table2, replace 3aster
xi: xtabond lneiapppco2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp   i.year , robust pre(llneiapppco2machmanimpwt llneiapppco2machmanexpwt, endog)
outreg using c:\table2, append 3aster
xi: xtabond lneiapppco2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp   i.year if inc_developing==1, robust pre(llneiapppco2machmanimpwt, endog)
outreg using c:\table2, append 3aster
xi: xtabond lneiapppco2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp   i.year if inc_developing==1, robust pre(llneiapppco2machmanimpwt llneiapppco2machmanexpwt, endog)
outreg using c:\table2, append 3aster

* Table 3
xi: xtabond lneiapppso2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp   i.year , robust pre(llneiapppso2machmanimpwt, endog)
outreg using c:\table3, replace 3aster
xi: xtabond lneiapppso2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp   i.year , robust pre(llneiapppso2machmanimpwt llneiapppso2machmanexpwt, endog)
outreg using c:\table3, append 3aster
xi: xtabond lneiapppso2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp   i.year if inc_developing==1, robust pre(llneiapppso2machmanimpwt , endog)
outreg using c:\table3, append 3aster
xi: xtabond lneiapppso2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp   i.year if inc_developing==1, robust pre(llneiapppso2machmanimpwt llneiapppso2machmanexpwt, endog)
outreg using c:\table3, append 3aster
xi: xtabond lneiapppso2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp lnhelsinkiyears lnosloyears llnso2emissionscontiguous i.year , robust pre(llneiapppso2machmanimpwt, endog) 
outreg using c:\table3, append 3aster
xi: xtabond lneiapppso2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp  lnhelsinkiyears lnosloyears llnso2emissionscontiguous i.year , robust pre(llneiapppso2machmanimpwt llneiapppso2machmanexpwt, endog)
outreg using c:\table3, append 3aster

* Appendix 1
quietly xi: xtabond lneiapppco2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp   i.year , robust pre(llneiapppco2machmanimpwt, endog)
su lneiapppco2 llneiapppco2machmanimpwt llneiapppco2machmanexpwt lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp  if e(sample)

quietly xi: xtabond lneiapppso2 lneiagdppcppp fdistockgdp industryvaluegdpi   internetandintouttelprinccomp   i.year , robust pre(llneiapppso2machmanimpwt, endog)
su lneiapppso2 llneiapppso2machmanimpwt llneiapppso2machmanexpwt lneiagdppcppp fdistockgdp industryvaluegdpi internetandintouttelprinccomp  lnhelsinkiyears lnosloyears llnso2emissionscontiguous if e(sample)

